package com.studyday.sjx01;

import java.io.File;

public class MyParam {
	public static String uploadFilePath = "D:/myupload";
	public static String downloadFilePath = "D:/myupload";

	public static void setUploadFilePath(String path) {
		if (path != null && !"".equals(path.trim())) {
			File f = new File(path);
			if (!f.exists()) {
				System.err.println(path + "不存在，请重新选择目录");
				return;
			}
			uploadFilePath = path;
		}
	}
	
	public static void setDownloadFilePath(String path) {
		if (path != null && !"".equals(path.trim())) {
			File f = new File(path);
			if (!f.exists()) {
				System.err.println(path + "不存在，请重新选择目录");
				return;
			}
			downloadFilePath = path;
		}
	}
}
